package app.myproject.dao;

import java.util.List;

public interface AbstractDAO <T, K> {

    public T create();
    
	public T find(K id);
    
    public void save(T object);
    
    public void update(T object);

    public void delete(T object);
    
    public void deleteById(K key);

    public List<T> list();
    
    public void deleteAll();
    
    public int count();
	
}


